package com.pks.autoInsurance.helper;

import org.apache.log4j.Logger;

import com.pks.autoInsurance.dao.LoginDAO;
import com.pks.autoInsurance.dao.LoginDAOImpl;
import com.pks.autoInsurance.dto.CustomerDto;

/**
 * Provide support for authentication
 * 
 * @author Pankaj Soni
 * 
 */
public class LoginHelper {

	private static final Logger LOGGER = Logger.getLogger(LoginHelper.class);

	/**
	 * Perform users login
	 * 
	 * @param customerDtoReq
	 * @return UserLevel for more info {@link UserLevels}
	 */
	public int authenticateUser(CustomerDto customerDtoReq) {
		LOGGER.debug("begin");
		LoginDAO loginDAO = new LoginDAOImpl();
		return loginDAO.authenticateUser(customerDtoReq);

	}

}
